package dfbz.demo07;

public class Test13 {
    public static void main(String[] args) {
        boolean[] bos = new boolean[1000];
        for (int i=1;i<1000;i++){
            bos[i] = true;
            for (int j=1;j<1000;j++) {
                int res = i&j;
                if (res!=0 && res != i) {
                    bos[i] = false;
                }
            }
        }
        for (int i=1;i<1000;i++){
            if (bos[i]){
                System.out.print(i + " ");
            }
        }
    }
}
